package entity;

import java.sql.Timestamp;

/**
 * @Author:wxw
 * @Date:2019/11/3 22:05
 * @Description:
 */
public class Notice {
    private int nid;//每条通知id
    private Timestamp ndate;//造成通知的时间
    private User uid;//发出通知人
    private User noid;//被通知人
    private int ntype;//通知类型（@=1，点赞=2，转发=3，评论=4）
    private WeiBo wid;//在哪条微博造成的通知
    private int zhuid;//这条微博的主任的id
    @Override
    public String toString() {
        return "NoticeBiz{" +
                "nid=" + nid +
                ", ndate=" + ndate +
                ", uid=" + uid +
                ", noid=" + noid +
                ", ntype=" + ntype +
                ", wid=" + wid +
                ", zhuid=" + zhuid +
                '}';
    }

    public int getZhuid() {
        return zhuid;
    }

    public void setZhuid(int zhuid) {
        this.zhuid = zhuid;
    }

    public Notice() {
    }

    public Notice(User uid, User noid, int ntype, WeiBo wid) {
        this.uid = uid;
        this.noid = noid;
        this.ntype = ntype;
        this.wid = wid;
    }

    public int getNid() {
        return nid;
    }

    public void setNid(int nid) {
        this.nid = nid;
    }

    public Timestamp getNdate() {
        return ndate;
    }

    public void setNdate(Timestamp ndate) {
        this.ndate = ndate;
    }

    public User getUid() {
        return uid;
    }

    public void setUid(User uid) {
        this.uid = uid;
    }

    public User getNoid() {
        return noid;
    }

    public void setNoid(User noid) {
        this.noid = noid;
    }

    public int getNtype() {
        return ntype;
    }

    public void setNtype(int ntype) {
        this.ntype = ntype;
    }

    public WeiBo getWid() {
        return wid;
    }

    public void setWid(WeiBo wid) {
        this.wid = wid;
    }
}
